package com.mcflies.commons;

import android.graphics.drawable.Drawable;
import android.graphics.drawable.LevelListDrawable;

/**
 * @author:mcfly_jun
 * @create_date:2012-8-10
 * @comment:用于保存ImitateUCMenuActivity中的MenuItem数据
 */
public class ImitateUCMenuItemData {
	private LevelListDrawable levelListDrawable;
	private String[] menuTitle;
	private int menuCount;

	public ImitateUCMenuItemData() {
	}

	public ImitateUCMenuItemData(LevelListDrawable levelListDrawable,
			String[] menuTitle, int menuCount) {
		this.levelListDrawable = levelListDrawable;
		this.menuTitle = menuTitle;
		this.menuCount = menuCount;
	}

	public String getMenuTitle(int index) {
		return menuTitle[index];
	}

	public Drawable getMenuDrawable(int index) {
		levelListDrawable.setLevel(index);
		Drawable drawable = levelListDrawable.getCurrent();
		return drawable;
	}

	public int getMenuCount() {
		return menuCount;
	}
}
